from playwright.sync_api import Playwright, sync_playwright


def run(playwright: Playwright) -> None:
    browser = playwright.chromium.launch(headless=False)
    context = browser.new_context()

    # Open new page
    page = context.new_page()

    # Go to https://www.infogreffe.com/entreprise-societe/428257042-bureau-van-dijk-information-management-750199B187990000.html?typeProduitOnglet=EXTRAIT
    page.goto("https://www.infogreffe.com/entreprise-societe/428257042-bureau-van-dijk-information-management-750199B187990000.html?typeProduitOnglet=EXTRAIT")

    # ---------------------
    context.close()
    browser.close()


with sync_playwright() as playwright:
    run(playwright)
